Skip to main content

eventShiftKey

Type

function

Summary

Returns the state of the Shift key.

Syntax

the eventShiftKey
eventShiftKey()

Description

Use the eventAltKey function to check whether the Shift key was pressed at the time the current event was dispatched.

If you want to check the state of the Shift key at the current time, rather than when the event was dispatched, use the shiftKey function.

*Warning

*: the value of this function is undefined after performing a wait operation; it may no longer be the same as the value when the event was dispatched.

Examples

if eventShiftKey() is down then beep
set the locked of me to (the eventShiftKey is up)

control structure: function

function: keysDown

glossary: return

message: scrollbarBeginning

constant: left

Compatibility and Support

Introduced

LiveCode 8.1

OS

mac

windows

linux

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?